package co.edu.unal.geditor.model;

import java.awt.Color;
import java.awt.Point;

import co.edu.unal.geditor.view.ElementView;
import co.edu.unal.geditor.view.ArcGraphView;

public class ArcElement extends GeometricGraphElement
{
	private static final long serialVersionUID = 1L;

	// method overloading
	public ArcElement( Point pUL, Point pBD )
	{
		super( pUL, pBD );
		setAngle( 180 );
	}

	// method overloading
	public ArcElement( Point pUL, Point pBD, int angle )
	{
		super( pUL, pBD );
		setAngle( angle );
	}

	// method overloading
	public ArcElement( Point pUL, Point pBD, Color color, int angle )
	{
		super( pUL, pBD, color );
		setAngle( angle );
	}


	@Override
	protected ElementView createView()
	{
		// start with graphics view by default
		
		return new ArcGraphView( this );
	}

	public static void setDefaultAngle(int newDefAngle){
		defaultAngle=newDefAngle;
	}
	public static int getDefaultAngle() {
		return defaultAngle;
	}
	
protected static int defaultAngle=180;
	
private int m_angle;

public int getAngle() {
	return m_angle;
}

public void setAngle(int angle) {
	m_angle = angle;
}
}
